package com.rtx.wms.std.po.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rtx.wms.std.po.bean.ApiPo;
import com.rtx.wms.std.po.bean.ApiPodetail;
import com.rtx.wms.std.po.bean.Po;
import com.rtx.wms.std.po.bean.Podetail;

@Service
public interface PoService extends IService<Po>{

	List<Po> queryByExternpokey(String datasourckey,String externpokey);
	
	
	void deletePoAndAsn(String datasourckey,String pokey,String receiptkey,String externpokey);
	
	void deletePoAndDetail(String datasourckey,String pokey,String externpokey);
	
	void updPoAndPodetail(String datasourckey,Po po,ApiPo apipo,List<Podetail> dList);
	
	void addPoAndDetailAndCarton(String datasourckey,Po po);
	
	void addExistsPodetail(String datasourckey,Po po,List<ApiPodetail> dList,ApiPo apipo);

	void updPodetailStatus(String datasourckey,String poKey, String status);
	
	void updPoStatus(String datasourckey,String poKey, String status);
}
